<div class = "pt-set-wrap">
    <div class = "pt-set-box">
        <div class = "pt-tab">
            <div class = "pt-tab-nav">
                <a href = "#" class = "current"><span>基本信息</span></a>
                <a href = "#"><span>内容信息</span></a>
            </div>
            <div class = "pt-tab-content">
                <form action = "{link=admin.category.add}" method = "post" enctype = "multipart/form-data" id = "form">
                    <div class = "pt-tab-item">
                        <div class = "pt-set-content">
        					{if isset($parent.name)}
        						<input name = "level" type = "hidden" value = "{$parent.sonlevel}" />
        						<input name = "pid" type = "hidden" value = "{$parent.id}" />
        						<div class = "pt-set-info">
        							<div class = "line">
        								<b>所属分类：</b>
        								<input name = "" type = "text" value = "{$parent.name}" readonly class = "input-text w450" />
        							</div>
        						</div>
        					{/if}
                            <div class = "pt-set-info">
                                <div class = "line">
                                    <b>分类名称：</b>
                                    <input name = "name" type = "text" value = "" class = "input-text w450" />
                                </div>
                            </div>
        					<div class = "pt-set-info">
                                <div class = "line">
                                    <b>urlkey：</b>
                                    <input name = "urlkey" type = "text" value = "" class = "input-text w450" />
                                </div>
                            </div>
                            <div class = "pt-set-info">
                                <div class = "line">
                                    <b>分类模型：</b>
                                    <select class = "input-box" name = "module">
                                        {section loop=$module item=$modulename}
                                        <option value = "{$modulename.id}">{$modulename.name}</option>
                                        {/section}
                                    </select>
                                </div>
                            </div>
        					<div class = "pt-set-info">
        						<div class = "line">
        							<b>{$typename}缩略图：</b>
        							<input name = "thumb" type = "text" value = "" class = "input-text w450" id = "litpic" />
        							<input class = "btn btn-primary btn-sm" type = "button" value = " 上传图片 " id = "insertimage" />
        						</div>
        					</div>
                            
                            <div class = "pt-set-info">
                                <div class = "line">
                                    <b>分类序号：</b>
                                    <input name = "ordernum" type = "text" value = "50" class = "input-text w450" />
                                </div>
                            </div>
                            <div class = "pt-set-info">
                                <div class = "line">
                                    <b>分类关键词：</b>
                                    <input name = "keywords" type = "text" value = "" class = "input-text w450" />
                                </div>
                            </div>
                            <div class = "pt-set-info">
                                <div class = "line">
                                    <b>分类描述：</b>
                                    <textarea name = "description" class = "input-box" style = "width:450px;height:80px;"></textarea>
                                </div>
                            </div>
                            <div class = "pt-set-info">
                                <div class = "line"><b>分类状态：</b>
                                    <input id = "label0" name = "status" type = "radio" value = "1" checked/>
                                    <label for = "label0">启用&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                    <input id = "label1" name = "status" type = "radio" value = '0' />
                                    <label for = "label1">禁用&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                </div>
                            </div>
        					<div class = "pt-set-info">
        						<div class = "line"><b>是否为菜单：</b>
        							<select class = "input-box w160" name = "ismenu">
        								<option value = "1" >显示菜单</option>
        								<option value = "0" selected>不显示菜单</option>
        							</select>
        						</div>
        					</div>
                        </div>
                    </div>
                    <div class = "pt-tab-item">
                        <div class = "pt-set-content">
                            <div class = "pt-set-info">
                                <div class = "line"><b>点击数：</b>
                                    <input name = "viewnum" type = "text" value = "{$info.viewnum}" class = "input-text" />
                                </div>
                            </div>
                            <div class = "pt-set-info">
                                <div class = "line"><b>模板名：</b>
                                    <input name = "template" type = "text" value = "{$info.template}" class = "input-text" />
                                </div>
                            </div>
                            <div class = "pt-set-info">
                                <div class = "line">
                                    <b>{$typename}内容：</b>
                                    <textarea name = "content" class = "input-box simditorarea" style = "width:740px;height:250px;"></textarea>
                                </div>
                            </div>
                            
                            
                        </div>
                    </div>
                    <div class = "pt-tab-button">
                        <div class = "pt-set-info">
                            <div class = "line">
                                <b></b>
                                <input class = "btn btn-success" type = "submit" value = " 添加分类 " />&nbsp;&nbsp;&nbsp;
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class = "f-clear"></div>
    </div>
</div>
<script type = "text/javascript">
    $('select[name=module]').change(function(){
        if ($(this).find(':selected').val()=='link'){
            $('.linkarea').show();
        }else{
            $('.linkarea').hide();
        }
    })
</script>